package org.jeecg.modules.complain.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.complain.service.IRepairService;
import org.jeecg.modules.complain.vo.RepairReport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
 *
 * 报修Api内部调用
 * @Author liurui
 * @Date 2019/8/18 13:39
 * @Version 1.0
 **/
@Slf4j
@Api(tags="repair Controller")
@RestController
@RequestMapping("/api/repair")
public class RepairDataApiController {

    @Autowired
    @Lazy
    IRepairService repairService;

    @ApiOperation(value="getRepairReport", notes="getRepairReport")
    @PostMapping(value = "/getRepairReport")
    public RepairReport getRepairReport(@RequestParam("projectId") String projectId){
        RepairReport repairReport = repairService.getRepairReport(projectId);
        return repairReport;
    }
}
